import { defineStore } from 'pinia'
import api from '@/api/api'

let emoData: any[] = []
export const useGenshinEmo = defineStore('YS-EMO', {
  state: () => {
    return {
      emoData
    }
  },
  getters: {},
  actions: {
    async getEmotion() {
      await api.getEmo().then(({ data }) => {
        this.emoData = data.data.list
      })
    }
  }
})
